<?php
/**
 * @package tests
 * @subpackage mock
 */
class UnitTestsMockService extends Service {

  /**
   * @param mixed $param
   * <pre>
   * {
   *   "type":"integer",
   *   "minimum":8
   * }
   * </pre>
   */
  function methodWithTestInputSchema($params) {}

  /**
   * @param mixed $param
   * <pre>
   * {
   *   "type":"integer",
   *   "minimum":8
   * }
   * </pre>
   */
  function methodWithParamDocButNotDeclared() {}

  /**
   * @return mixed
   * <pre>
   * {
   *   "type":"integer",
   *   "minimum":8
   * }
   * </pre>
   */
  function methodWithTestOutputSchema() {

  }

  function methodWithTwoParameters($json1,$json2) {}


  /**
   * @return StdClass
   * {}
   */
  function methodWithNoParameter() {
    return new stdClass();
  }

  /**
   * @param mixed $json
   * {}
   * @return void
   */
  function methodWithVoidReturn($json) {

  }

  /**
   * @param mixed $json
   * {
   *   asdf:asdf
   * }
   * @return void
   */
  function methodWithMalformedInputSchema($json) {

  }

  /**
   * @return mixed
   * <pre>
   * {"type":"integer"}
   * </pre>
   */
  function methodWithWrongMethodOutput() {
    if (self::_invoke()) return self::_output();
    return "aaa";
  }

  /**
   * @param mixed $json
   * <pre>
   * {"type":"integer"}
   * </pre>
   * @return void
   */
  function methodThatExpectsInteger($json) {
     if (self::_invoke()) return self::_output();
  }

  function methodThatDoesNotDeclaresReturnVoidOnDocs() {
  }

}
?>